#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char ch;
	scanf("%c", &ch);
	getchar();
	char arr[80];
	gets(arr);
	size_t len = strlen(arr);
	int j = 0;
	for (int i = 0; i < len; i++) {
		if (arr[i] == ch) {
			j = i;
		}
	}
	if (j == 0) {
		printf("Not Found\n");
	}
	else {
		printf("index = %d\n", j);
	}
	return 0;
}